/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mpo;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 *
 * @author Konrad
 */
public class Kategoria {
    
    private String nazwa;
    private GregorianCalendar dataWaznosci;
    
    
    Kategoria(){
    
        nazwa = "";
        dataWaznosci = new GregorianCalendar(
				2014, Calendar.OCTOBER, 29, 10, 40);
    }
    
    Kategoria(String nazwa, GregorianCalendar dataWaznosci){
    
        this.nazwa = nazwa;
        this.dataWaznosci = dataWaznosci;
    }

    public String getNazwa() {
        return nazwa;
    }

    public GregorianCalendar getDataWaznosci() {
        return dataWaznosci;
    }

    public void setNazwa(String nazwa) {
        this.nazwa = nazwa;
    }

    public void setDataWaznosci(GregorianCalendar dataWaznosci) {
        this.dataWaznosci = dataWaznosci;
    }

    @Override
    public String toString() {
        return "Kategoria{" + "nazwa = " + nazwa + ", dataWaznosci = " + dataWaznosci.getTime() + '}';
    }
    
    
}
